import http from '../common/http.js'

//下单
export const userOrderApi = (parm) => {
	return http.post("/wxapi/order/userOrder", parm)
}
//查询订单
export const getOrderListApi = (parm) => {
	return http.get("/wxapi/order/getOrderList", parm)
}
//取消订单
export const cancelOrderApi = (parm) => {
	return http.put("/wxapi/order/cancelOrder", parm)
}
//取消订单
export const commentListApi = (parm) => {
	return http.get("/wxapi/comment/commentList", parm)
}
export const addCollectApi = (parm) => {
	return http.post("/wxapi/collect/addCollect", parm)
}
export const hasCollectApi = (parm) => {
	return http.get("/wxapi/collect/hasCollect", parm)
}
export const cancelCollectApi = (parm) => {
	return http.post("/wxapi/collect/cancelCollect", parm)
}
export const confirmOrderApi = (parm)=>{
	return http.post("/wxapi/order/confirmOrder",parm)
}